luci/statistics: Fix nut UPS graphs
authorDavid Woodhouse <[email protected]>
Thu, 17 Sep 2015 10:35:38 +0000 (11:35 +0100)
committerDavid Woodhouse <[email protected]>
Tue, 22 Sep 2015 20:15:50 +0000 (21:15 +0100)
At some point since I last checked, the nut plugin for collectd changed the
names of the timeleft and percent datasets. Update the luci module to match
so that those graphs are generated correctly again.

Signed-off-by: David Woodhouse <[email protected]>
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua

index 6dc81bc1d75fb0089e073405120a793fae76d8cb..8b04ab8b38795b5bc7942e502b38a7c1578584a0 100644 (file)
@@ -44,9 +44,6 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
                y_max = "100",
                number_format = "%5.1lf%%",
                data = {
-                       sources = {
-                               percent = { "percent" }
-                       },
                        instances = {
                                percent = "charge"
                        },
@@ -77,9 +74,6 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
                vlabel = "Minutes",
                number_format = "%.1lfm",
                data = {
-                       sources = {
-                               timeleft = { "timeleft" }
-                       },
                        instances = {
                                timeleft = { "battery" }
                        },